<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" 
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich" xml:lang="en">
<head>
<title>课件查看</title>
<meta http-equiv="keywords" content="enter,your,keywords,here" />
<meta http-equiv="description"
	content="A short description of this page." />
<link href="#{facesContext.externalContext.requestContextPath}/css/public.css" rel="stylesheet" type="text/css"
	media="screen" />
<link href="#{facesContext.externalContext.requestContextPath}/css/main.css" rel="stylesheet" type="text/css"
	media="screen" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<!-- rich:message style-->
<style type="text/css">
	.rich-message-label{
		color:red;
	}
</style>
</head>
<body style="background-color: #ffffff">

<h:form>
	<table style=" width : 100%;" >
		<tr style=" height : 30px;">
			<td >
				<h:inputHidden id="tp_courseware" value="#{TrainBB.courseware.tp_coursewareid}"></h:inputHidden>
				<h:inputHidden id="tp_trainplan" value="#{TrainBB.trainplan.tp_trainplanid}"></h:inputHidden>    
			</td>
			<td ></td>
			<td ></td>
		</tr>
		<tr style=" height : 30px;">
			<td width="20%"></td>
			<td align="center" style="FONT-SIZE: x-large; COLOR: #8080c0;">#{TrainBB.courseware.tp_cwtitle}</td>
			<td width="20%"></td>
		</tr>
		<tr style=" height : 10px;">
			<td></td>
			<td align="right">#{TrainBB.courseware.tp_userkind_value}</td>
			<td></td>
		</tr>
		<tr style=" height : 30px;">
			<td></td>
			<td style="FONT-SIZE: small; FONT-WEIGHT: bold;">内容简介：#{TrainBB.courseware.tp_cwsyno}</td>
			<td></td>
		</tr>
		<tr style=" height : 300px;" valign="top">
			<td></td>
			<td style="FONT-FAMILY: '楷体_GB2312'; COLOR: #0080c0; FONT-SIZE: large;"><h:inputTextarea cols="200" rows="25" id="tp_cont" readonly="true"
			    value="#{TrainBB.courseware.tp_cwcont}" ></h:inputTextarea></td>
			<td></td>
		</tr>
		<tr>
		<td></td>
			<td > <div style="height:25px;margin:0px,10px;">
					    	<h:inputHidden value="#{TrainBB.courseware.tp_affixaddress}" />
					    	<h:inputHidden value="#{TrainBB.courseware.tp_filename}" />
					    	<h:outputText value="附件：" />
					    	<h:outputText value="没有附件！" rendered="#{empty(TrainBB.courseware.tp_filename)}"/>
					    	<h:commandLink value="#{TrainBB.courseware.tp_filename}" actionListener="#{TrainBB.downloadAction}" target="_blank"/>
					    </div></td>
		<td></td>
		</tr>
	</table>
	
	
	<div class="listbut">
		<h:commandButton  styleClass="buttonbg2" value="返回" action="#{TrainBB.toBack1}" immediate="true"/>
		<h:commandButton  styleClass="buttonbg2" value="注册" action="#{TrainBB.register}"/>
		<h:commandButton  styleClass="buttonbg2" value="开始考核" action="#{QualifyforBB.toPapersExamNew}" style="display: #{TrainBB.target==1? 'block':'none'}"/>
		</div>
	
</h:form>
</body>
</html>

